<?php
/**
* Automatically includes files needed if objects are created
*
* @param string $classname
*/
function __autoload($classname)
{
	if(!is_file($_SERVER['DOCUMENT_ROOT'].'/soulstream/classes/'.$classname.'.php') || !require_once $classname.'.php')
	{
		die('Class does not exist: '.$classname);
	}
}
?>